
<section class="main-section grid_7">
 <div class="main-content">
    <header>
    <ul class="action-buttons clearfix fr">
        <li><a href="documentation/index.html" class="button button-gray no-text help" rel="#overlay">Help<span class="help"></span></a></li>
    </ul>
    <h2>
        Agency for New Americans
    </h2>
    </header>

    

        <section class="container_6 clearfix">

            <?php echo $this->Form->create('User', array('id' => 'form', 'action' => 'uapplication'));?>
                <h3>Volunteer Application</h3>


                <!-- the tabs -->

                    <!--
                    <hr />
                    <ul>
                        <li><a href="#">Step 1</a></li>
                        <li><a href="#">Step 2</a></li>
                        <li><a href="#">Step 3</a></li>
                        <li><a href="#">Step 4</a></li>
                        <li><a href="#">Step 5</a></li>
                        <li><a href="#">Step 6</a></li>
                    </ul>
                    -->

                        <!-- step one -->

                            <section class="form">
                            <fieldset>
                            <h4>Contact Information</h4>
                            <?php echo $this->Form->input('User.fname', array('label'=> 'First Name <em>*</em><small>Enter your first name</small>', 'required' => 'true')); ?>
                            <?php echo $this->Form->input('User.lname', array('label'=> 'Last Name <em>*</em><small>Enter your last name</small>', 'required' => 'true')); ?>
                            <?php echo $this->Form->input('User.cphone', array('label'=> 'Cell Phone <em></em><small>Enter your cell phone</small>')); ?>
                            <?php echo $this->Form->input('User.hphone', array('label'=> 'Home Phone <em></em><small>Enter your home phone</small>')); ?>
                            <?php echo $this->Form->input('User.wphone', array('label'=> 'Work Phone <em></em><small>Enter your work phone</small>')); ?>
                            <?php echo $this->Form->input('User.email_address', array('label'=> 'Email <em>*</em><small>Enter your email address</small>', 'required' => 'true', 'pattern' => '^\w+@[a-zA-Z_]+?\.[a-zA-Z]{2,3}$')); ?>
                            <?php echo $this->Form->input('other.Address', array('label'=> 'Street Address / Apt <em>*</em><small>Enter your address</small>', 'required' => 'true'))?>
                            <?php echo $this->Form->input('other.City', array('label'=> 'City <em>*</em><small>Enter your city</small>', 'required' => 'true'))?>
                            <?php echo $this->Form->input('other.State', array('label'=> 'State <em>*</em><small>Enter your state</small>', 'required' => 'true'))?>
                            <?php echo $this->Form->input('other.Zip', array('label'=> 'Zip <em>*</em><small>Enter your zip</small>', 'required' => 'true'))?>
                            </fieldset>
                            </section>
                        <!-- end step one -->

                        <!-- step two -->
                            <fieldset>
                            <h4>Skills</h4>
                            <div>
                            <?php
                                $options = array();

                                    foreach($skill as $sk)
                                    {
                                       $options[$sk['Skill']['id']] = $sk['Skill']['name'];
                                    }

                                    echo $form->input('Skill', array('label' => '', 'multiple' => 'checkbox', 'options' => $options));
                                    //echo pr($profile);
                            ?>
                            </div>
                            </fieldset>
                        <!-- end step two -->

                        <!-- step three -->
                        <fieldset>
                            <h4>Availability</h4>
                        <?php
                        $options = array();

                        foreach($avail as $av)
                        {
                            $options[$av['Available']['id']] = $av['Available']['avail_day'] . ' ' . $av['Available']['avail_time'];
                        }

                        echo $form->input('Available', array('label' => '', 'multiple' => 'checkbox', 'options' => $options));
                        ?>
                        </fieldset>

                        <!-- end step three -->

                        <!-- step four -->
                            <fieldset>
                           <h4>Volunteer and/or Employment Experience</h4>
                            <table border="1">
                                <tr>
                                <td>Organization</td>
                                <td>Contact Name</td>
                                <td>Contact Phone</td>
                                </tr>
                                <tr>
                                <td><?php echo $this->Form->input('other.ExperienceOrg1', array('label' => '', 'required' => 'true'))?></td>
                                <td><?php echo $this->Form->input('other.ExperienceContact1', array('label' => '', 'required' => 'true'))?></td>
                                <td><?php echo $this->Form->input('other.ExperiencePhone1', array('label' => '', 'required' => 'true'))?></td>
                                </tr>

                                </table>

                            <table border="1">
                                <tr>
                                <td>From:</td>
                                <td>To:</td>

                                </tr>
                                <tr>
                                <td align="top"><?php echo $this->Form->input('other.From1', array('label' => '', 'required' => 'true'))?></td>
                                <td><?php echo $this->Form->input('other.To1', array('label' => '', 'required' => 'true'))?></td>

                                </tr>
                                </table>
                            <p>Responsibilities / Projects</p>
                            <?php echo $this->Form->input('other.ExperienceProjects1', array('type' => 'input', 'label' => '', 'required' => 'true', 'class' => 'full'))?>
                            <hr/>
                            <table border="1">
                                <tr>
                                <td>Organization</td>
                                <td>Contact Name</td>
                                <td>Contact Phone</td>
                                </tr>
                                <tr>
                                <td><?php echo $this->Form->input('other.ExperienceOrg2', array('label' => '', 'required' => 'true'))?></td>
                                <td><?php echo $this->Form->input('other.ExperienceContact2', array('label' => '', 'required' => 'true'))?></td>
                                <td><?php echo $this->Form->input('other.ExperiencePhone2', array('label' => '', 'required' => 'true'))?></td>
                                </tr>

                                </table>

                            <table border="1">
                                <tr>
                                <td>From:</td>
                                <td>To:</td>

                                </tr>
                                <tr>
                                <td align="top"><?php echo $this->Form->input('other.From2', array('label' => '', 'required' => 'true'))?></td>
                                <td><?php echo $this->Form->input('other.To2', array('label' => '', 'required' => 'true'))?></td>

                                </tr>
                                </table>
                            <p>Responsibilities / Projects</p>
                            <?php echo $this->Form->input('other.ExperienceProjects2', array('type' => 'input', 'label' => '', 'required' => 'true', 'class' => 'full'))?>
                           </fieldset>
                        <!-- end step four -->

                        <!-- step five -->
                        <fieldset>
                           <h4>Additional Skill and Qualifications</h4>
                            <p>I have skills, qualifications, and/or specific interests (job.career counseling, foreign language(s), teaching skills, computer skills, coursework, etc.) that will be helpful. These include:</p>
                            <?php echo $this->Form->input('other.skills', array('type' => 'input', 'label' => '', 'required' => 'true', 'class' => 'full'))?>
                        </fieldset>
                        <!-- end step five -->

                        <!-- step six -->
                            <fieldset>
                           <h4>Other Information</h4>
                            <p>Is this volunteer experience required of an educational class?
                                <?php $options = array('Yes' => 'Yes', 'No' => 'No'); echo $this->Form->input('other.education', array('options' => $options, 'type' => 'select', 'label' => '', 'empty' => 'Select One'))?>
                            </p>
                            <p>Do you have your own transportation?
                                <?php $options = array('Yes' => 'Yes', 'No' => 'No'); echo $this->Form->input('other.transportation', array('options' => $options, 'type' => 'select', 'label' => '', 'empty' => 'Select One'))?>
                            </p>

                            <p>Have you ever been convicted of a felony?
                                <?php $options = array('Yes' => 'Yes', 'No' => 'No'); echo $this->Form->input('other.felony', array('options' => $options, 'type' => 'select', 'label' => '', 'empty' => 'Select One', 'required' => 'true'))?>
                            </p>

                            <div id="references">
                                <h3>References</h3>
                                <p>List two character references that have known you for at least one year (no relatives):</p>
                                <table border="1">
                                <tr>
                                <td>1 -- Name</td>
                                <td>Relationship</td>
                                <td>Contact Phone</td>
                                </tr>
                                <tr>
                                <td><?php echo $this->Form->input('other.referenceName1', array('label' => '', 'required' => 'true'))?></td>
                                <td><?php echo $this->Form->input('other.referenceRelationship1', array('label' => '', 'required' => 'true'))?></td>
                                <td><?php echo $this->Form->input('other.referenceContactPhone1', array('label' => '', 'required' => 'true'))?></td>
                                </tr>

                                </table>

                                <table border="1">
                                <tr>
                                <td>2 -- Name</td>
                                <td>Relationship</td>
                                <td>Contact Phone</td>
                                </tr>
                                <tr>
                                <td><?php echo $this->Form->input('other.referenceName2', array('label' => '', 'required' => 'true'))?></td>
                                <td><?php echo $this->Form->input('other.referenceRelationship2', array('label' => '', 'required' => 'true'))?></td>
                                <td><?php echo $this->Form->input('other.referenceContactPhone2', array('label' => '', 'required' => 'true'))?></td>
                                </tr>

                                </table>
                            </div>
                            </fieldset>
                        <!-- end step six -->

                <p class="message warning">All volunteer positions require that you provide copies of your driver's
                license and insurance card.  Background checks are conducted on all volunteers. </p>
                <p class="message info">I understand that, as a volunteer of the Agency for New Americans.  I may encounter information of a confidential nature regarding clients
                or staff.  I understand that I am not to disclose any information I may learn through records,
                files, and/or through communications with refugees or staff to anyone outside of the agency.  I understand this
                applies to information acquired during all personal contacts with refugee clients.  I understand and agree to follow this
                Confidentiality Agreement of Understanding. <br/><br/>
                <input type="checkbox" name="agree" value="agree" required="required" /> I Agree</p>
                <div id="errorBox"></div>
                <?php echo $form->button('Submit Application', array('class' => 'button button-green', 'id'=>'SaveForm'));?>
                <?php echo $form->end();?>
                <br />
                <hr />
        </section><!-- end container_6 clearfix -->
 </div> <!-- end main-content -->
</section>   <!-- end main-section grid_7 -->


         <script type="text/javascript">
            $('#SaveForm').click(function() {
                 var cl = $("#UserCphone").val();
                 var hm = $("#UserHphone").val();
                 var wk = $("#UserWphone").val();

                    if(jQuery.trim(cl).length == 0 && jQuery.trim(hm).length == 0 && jQuery.trim(wk).length == 0)
                        {
                           $('#errorBox').append('<p class="message error">You must enter at least one phone number</p>');
                    } else {
                           $('#errorBox').empty();

                        }

                });

         </script>

 